<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: D:/Home/MFF/1-Mgr/projekt/pepr3d/src/commands/CmdPaintBrush.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_cmd_paint_brush_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CmdPaintBrush.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;commands/Command.h&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;geometry/Geometry.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;tools/Brush.h&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepepr3d.html">pepr3d</a> {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_cmd_paint_brush.html">   14</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpepr3d_1_1_cmd_paint_brush.html">CmdPaintBrush</a> : <span class="keyword">public</span> <a class="code" href="classpepr3d_1_1_command_base.html">CommandBase</a>&lt;Geometry&gt; {</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">using</span> Point3 = Geometry::Point3;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="keyword">using</span> Vector3 = Geometry::Vector3;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keyword">using</span> Circle = Geometry::Circle;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_cmd_paint_brush.html#a3e2136c68fe1c36a812e576ead824d53">   20</a></span>&#160;    std::string_view <a class="code" href="classpepr3d_1_1_cmd_paint_brush.html#a3e2136c68fe1c36a812e576ead824d53">getDescription</a>()<span class="keyword"> const override </span>{</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&quot;Paint with a brush&quot;</span>;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    }</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="classpepr3d_1_1_cmd_paint_brush.html">CmdPaintBrush</a>(ci::Ray ray, <span class="keyword">const</span> <a class="code" href="structpepr3d_1_1_brush_settings.html">BrushSettings</a> settings)</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        : <a class="code" href="classpepr3d_1_1_command_base.html">CommandBase</a>(true, true), mRays{ray}, mSettings(settings) {}</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;   <span class="keyword">protected</span>:</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_cmd_paint_brush.html#af77ed19d5ba71492a6e513a204b00ba5">   28</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_cmd_paint_brush.html#af77ed19d5ba71492a6e513a204b00ba5">run</a>(<a class="code" href="classpepr3d_1_1_geometry.html">Geometry</a>&amp; target)<span class="keyword"> const override </span>{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <span class="keyword">const</span> <span class="keyword">auto</span> start = std::chrono::high_resolution_clock::now();</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        <span class="keywordflow">for</span>(<span class="keyword">const</span> ci::Ray&amp; ray : mRays) {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;            <span class="keywordflow">if</span>(mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#a6988634902d2ebb5e10e4ed2ed9e74dc">spherical</a>) {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                target.<a class="code" href="classpepr3d_1_1_geometry.html#ab4593a2aa8017add96d6cd7e177a0cf1">paintAreaWithSphere</a>(ray, mSettings);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;            } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                glm::vec3 ro = ray.getOrigin();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                glm::vec3 rd = ray.getDirection();</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                <span class="keywordflow">if</span>(mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#a4949a6501a1ac9525c0b8ef4219bfdec">alignToNormal</a>) {</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                    <span class="keyword">auto</span> intersection = target.<a class="code" href="classpepr3d_1_1_geometry.html#ace58dc7a4182240000e9b773cb8da4ee">intersectMesh</a>(ray, ro);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                    <span class="keywordflow">if</span>(!intersection) {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                        <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                    }</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                    rd = -target.getTriangle(*intersection).getNormal();</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;                }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                <span class="comment">// Create a shape to paint with</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;                <span class="keyword">const</span> Vector3 rayDirectionVector(rd.x, rd.y, rd.z);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                <span class="keyword">const</span> Circle circle(Point3(ro.x, ro.y, ro.z), mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#a01300f710ecd757b8f532a1da1f3bc4c">size</a> * mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#a01300f710ecd757b8f532a1da1f3bc4c">size</a>, rayDirectionVector);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                <span class="keyword">const</span> std::vector&lt;Point3&gt; circlePoints = <a class="code" href="classpepr3d_1_1_geometry_utils.html#aa40d71268a74cdeb820d931175f14df0">GeometryUtils::pointsOnCircle</a>(circle, mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#a297b93063de058754d95730263c48a59">segments</a>);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                target.<a class="code" href="classpepr3d_1_1_geometry.html#a6c6b8ef6f157f8bb818e38f6e2e49b37">paintWithShape</a>(ray, circlePoints, mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#a926d73e6b64dda9d777ba090074bd031">color</a>, mSettings.<a class="code" href="structpepr3d_1_1_brush_settings.html#ab509aa6a59f8a36b9de2ae9d579a47f7">paintBackfaces</a>);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            }</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        }</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keyword">const</span> <span class="keyword">auto</span> end = std::chrono::high_resolution_clock::now();</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        std::chrono::duration&lt;double, std::milli&gt; timeMs = end - start;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        CI_LOG_I(<span class="stringliteral">&quot;Brush paint took &quot;</span> + std::to_string(timeMs.count()) + <span class="stringliteral">&quot; ms&quot;</span>);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_cmd_paint_brush.html#a05e6c87b7cd47b72150e05f2ee584ee8">   61</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_cmd_paint_brush.html#a05e6c87b7cd47b72150e05f2ee584ee8">joinCommand</a>(<span class="keyword">const</span> <a class="code" href="classpepr3d_1_1_command_base.html">CommandBase</a>&amp; otherBase)<span class="keyword"> override </span>{</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keyword">const</span> <span class="keyword">auto</span>* other = dynamic_cast&lt;const CmdPaintBrush*&gt;(&amp;otherBase);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keywordflow">if</span>(other &amp;&amp; other-&gt;mSettings == mSettings) {</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            mRays.insert(mRays.end(), other-&gt;mRays.begin(), other-&gt;mRays.end());</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        }</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    std::vector&lt;ci::Ray&gt; mRays;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="structpepr3d_1_1_brush_settings.html">BrushSettings</a> mSettings;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}  <span class="comment">// namespace pepr3d</span></div><div class="ttc" id="classpepr3d_1_1_cmd_paint_brush_html_af77ed19d5ba71492a6e513a204b00ba5"><div class="ttname"><a href="classpepr3d_1_1_cmd_paint_brush.html#af77ed19d5ba71492a6e513a204b00ba5">pepr3d::CmdPaintBrush::run</a></div><div class="ttdeci">void run(Geometry &amp;target) const override</div><div class="ttdoc">Run the command, applying the modifications to the target.</div><div class="ttdef"><b>Definition:</b> CmdPaintBrush.h:28</div></div>
<div class="ttc" id="classpepr3d_1_1_geometry_utils_html_aa40d71268a74cdeb820d931175f14df0"><div class="ttname"><a href="classpepr3d_1_1_geometry_utils.html#aa40d71268a74cdeb820d931175f14df0">pepr3d::GeometryUtils::pointsOnCircle</a></div><div class="ttdeci">static std::vector&lt; DataTriangle::K::Point_3 &gt; pointsOnCircle(const DataTriangle::K::Circle_3 &amp;circle, int segments)</div><div class="ttdoc">Get equidistant points on circle.</div><div class="ttdef"><b>Definition:</b> GeometryUtils.h:73</div></div>
<div class="ttc" id="namespacepepr3d_html"><div class="ttname"><a href="namespacepepr3d.html">pepr3d</a></div><div class="ttdoc">Fix for CGAL bugs in polygon with holes verification Contained in CGAL PR #3688, likely to be in 4....</div><div class="ttdef"><b>Definition:</b> CmdColorManager.h:9</div></div>
<div class="ttc" id="classpepr3d_1_1_cmd_paint_brush_html_a05e6c87b7cd47b72150e05f2ee584ee8"><div class="ttname"><a href="classpepr3d_1_1_cmd_paint_brush.html#a05e6c87b7cd47b72150e05f2ee584ee8">pepr3d::CmdPaintBrush::joinCommand</a></div><div class="ttdeci">bool joinCommand(const CommandBase &amp;otherBase) override</div><div class="ttdoc">Join this command with other command of the same commandType, uniting both commands into this command...</div><div class="ttdef"><b>Definition:</b> CmdPaintBrush.h:61</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html_a01300f710ecd757b8f532a1da1f3bc4c"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html#a01300f710ecd757b8f532a1da1f3bc4c">pepr3d::BrushSettings::size</a></div><div class="ttdeci">float size</div><div class="ttdoc">Size of a brush in model space units.</div><div class="ttdef"><b>Definition:</b> Brush.h:15</div></div>
<div class="ttc" id="classpepr3d_1_1_cmd_paint_brush_html_a3e2136c68fe1c36a812e576ead824d53"><div class="ttname"><a href="classpepr3d_1_1_cmd_paint_brush.html#a3e2136c68fe1c36a812e576ead824d53">pepr3d::CmdPaintBrush::getDescription</a></div><div class="ttdeci">std::string_view getDescription() const override</div><div class="ttdoc">Get description of the command.</div><div class="ttdef"><b>Definition:</b> CmdPaintBrush.h:20</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html_ab509aa6a59f8a36b9de2ae9d579a47f7"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html#ab509aa6a59f8a36b9de2ae9d579a47f7">pepr3d::BrushSettings::paintBackfaces</a></div><div class="ttdeci">bool paintBackfaces</div><div class="ttdoc">Paint onto backward facing triangles.</div><div class="ttdef"><b>Definition:</b> Brush.h:21</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html_a297b93063de058754d95730263c48a59"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html#a297b93063de058754d95730263c48a59">pepr3d::BrushSettings::segments</a></div><div class="ttdeci">int segments</div><div class="ttdoc">Number of segments of the brush.</div><div class="ttdef"><b>Definition:</b> Brush.h:18</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html_a4949a6501a1ac9525c0b8ef4219bfdec"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html#a4949a6501a1ac9525c0b8ef4219bfdec">pepr3d::BrushSettings::alignToNormal</a></div><div class="ttdeci">bool alignToNormal</div><div class="ttdoc">Use local normal for direction of shape brush.</div><div class="ttdef"><b>Definition:</b> Brush.h:40</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html">pepr3d::BrushSettings</a></div><div class="ttdoc">Current settings of the Brush tool.</div><div class="ttdef"><b>Definition:</b> Brush.h:10</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html_a6988634902d2ebb5e10e4ed2ed9e74dc"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html#a6988634902d2ebb5e10e4ed2ed9e74dc">pepr3d::BrushSettings::spherical</a></div><div class="ttdeci">bool spherical</div><div class="ttdoc">Use spherical brush (otherwise shape brush will be used.</div><div class="ttdef"><b>Definition:</b> Brush.h:24</div></div>
<div class="ttc" id="classpepr3d_1_1_geometry_html"><div class="ttname"><a href="classpepr3d_1_1_geometry.html">pepr3d::Geometry</a></div><div class="ttdoc">The whole geometry of a model that the user is painting.</div><div class="ttdef"><b>Definition:</b> Geometry.h:34</div></div>
<div class="ttc" id="classpepr3d_1_1_geometry_html_ace58dc7a4182240000e9b773cb8da4ee"><div class="ttname"><a href="classpepr3d_1_1_geometry.html#ace58dc7a4182240000e9b773cb8da4ee">pepr3d::Geometry::intersectMesh</a></div><div class="ttdeci">std::optional&lt; size_t &gt; intersectMesh(const ci::Ray &amp;ray) const</div><div class="ttdoc">Intersects the mesh with the given ray and returns the index of the triangle intersected,...</div><div class="ttdef"><b>Definition:</b> Geometry.cpp:288</div></div>
<div class="ttc" id="classpepr3d_1_1_geometry_html_a6c6b8ef6f157f8bb818e38f6e2e49b37"><div class="ttname"><a href="classpepr3d_1_1_geometry.html#a6c6b8ef6f157f8bb818e38f6e2e49b37">pepr3d::Geometry::paintWithShape</a></div><div class="ttdeci">void paintWithShape(const ci::Ray &amp;ray, const std::vector&lt; Point3 &gt; &amp;shape, size_t color, bool paintBackfaces=false)</div><div class="ttdoc">Paint area with a shaped brush.</div><div class="ttdef"><b>Definition:</b> Geometry.cpp:456</div></div>
<div class="ttc" id="classpepr3d_1_1_geometry_html_ab4593a2aa8017add96d6cd7e177a0cf1"><div class="ttname"><a href="classpepr3d_1_1_geometry.html#ab4593a2aa8017add96d6cd7e177a0cf1">pepr3d::Geometry::paintAreaWithSphere</a></div><div class="ttdeci">void paintAreaWithSphere(const ci::Ray &amp;ray, const BrushSettings &amp;settings)</div><div class="ttdoc">Paint continuous spherical area with a brush of specified size.</div><div class="ttdef"><b>Definition:</b> Geometry.cpp:544</div></div>
<div class="ttc" id="classpepr3d_1_1_command_base_html"><div class="ttname"><a href="classpepr3d_1_1_command_base.html">pepr3d::CommandBase</a></div><div class="ttdoc">CommandBase is a base class for commands representing a single undoable operation....</div><div class="ttdef"><b>Definition:</b> Command.h:10</div></div>
<div class="ttc" id="structpepr3d_1_1_brush_settings_html_a926d73e6b64dda9d777ba090074bd031"><div class="ttname"><a href="structpepr3d_1_1_brush_settings.html#a926d73e6b64dda9d777ba090074bd031">pepr3d::BrushSettings::color</a></div><div class="ttdeci">size_t color</div><div class="ttdoc">Index of the selected color.</div><div class="ttdef"><b>Definition:</b> Brush.h:12</div></div>
<div class="ttc" id="classpepr3d_1_1_cmd_paint_brush_html"><div class="ttname"><a href="classpepr3d_1_1_cmd_paint_brush.html">pepr3d::CmdPaintBrush</a></div><div class="ttdoc">Command that paints a stroke with a brush.</div><div class="ttdef"><b>Definition:</b> CmdPaintBrush.h:14</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_5e80d29b61c444378a543be4dd1414df.html">commands</a></li><li class="navelem"><b>CmdPaintBrush.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
